

#import "CustomTableViewCell.h"
#import <QuartzCore/QuartzCore.h>
@implementation CustomTableViewCell
@synthesize description = _description;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        _titleLable = [[UILabel alloc] initWithFrame:CGRectMake(10, 6, 300, 30)];
        _titleLable.font = [UIFont systemFontOfSize:14];
        _samllImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 36, 80, 60)];
        _samllImageView.layer.cornerRadius = 5.0f;
        _samllImageView.layer.masksToBounds = YES;
        _description = [[UILabel alloc] initWithFrame:CGRectMake(95, 36, 310-92,50)];
        _description.backgroundColor = [UIColor clearColor];
        _description.userInteractionEnabled = NO;
        _description.numberOfLines = 0;
        _description.lineBreakMode = NSLineBreakByWordWrapping;
        _description.textAlignment = NSTextAlignmentLeft;
        _description.font = [UIFont systemFontOfSize:11];
        _description.textColor = [UIColor grayColor];
        
        UIImageView *hitImage = [[UIImageView alloc] initWithFrame:CGRectMake(260, 86, 15, 10)];
        [hitImage setImage:[UIImage imageNamed:@"news_listview_item_attention.png"]];
        _hits = [[UILabel alloc] initWithFrame:CGRectMake(280, 86, 22, 10)
                 ];
        _hits.backgroundColor = [UIColor clearColor];
        _hits.textColor = [UIColor grayColor];
        _hits.font =[UIFont systemFontOfSize:10];
        [self addSubview:_titleLable];
        [self addSubview:_samllImageView];
        [self addSubview:_description];
        [self addSubview:_hits];
        [self addSubview:hitImage];
        self.frame = CGRectMake(0, 0, 320, 100);
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
